package com.varteq.progress.client;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.varteq.progress.shared.ProgressChangeEvent;

@RemoteServiceRelativePath("ProgressService")
public interface ProgressService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static ProgressServiceAsync instance;

		public static ProgressServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(ProgressService.class);
			}
			return instance;
		}
	}

	public List<ProgressChangeEvent> getProgressEvents(String progressName);
}
